package com.cyy.admin.repository;

import com.cyy.admin.entity.CyyUserEntity;
import com.cyy.admin.entity.SysRoleEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * 
 * 
 * @author chenyuyi
 * @date 2021-12-10 09:53:09
 *
 * 接口用法大全。
 * https://mapperhelper.github.io/all/
 */
@Repository
public interface SysRoleRepostitorry extends JpaRepository<SysRoleEntity,String>, JpaSpecificationExecutor<SysRoleEntity> {

    @Query("select r from SysRoleEntity r where id = ?1")
    SysRoleEntity selectById(String roleId);
}
